#!/bin/sh

log_file=/tmp/app_name_vm.txt
pid=31000

while true
do
    echo $(date) $(cat /proc/${pid}/status | grep VmRSS) >> ${log_file}
    sleep 30
done

